import Vue from 'vue';
import Router from 'vue-router';
import DashboardLayout from '../layout/starter/SampleLayout.vue';

Vue.use(Router);


const haveTalkPage = () => import(/* webpackChunkName: "dashboard" */"@/layout/starter/haveTalkPage.vue")
const inteAgent= () => import(/* webpackChunkName: "dashboard" */"@/layout/agent/inteAgent.vue");
const login= () => import(/* webpackChunkName: "dashboard" */"@/layout/login/login.vue");;
export default new Router({
  routes: [
    {
      // path: '/',
      // name: 'home',
      // redirect: '/classList',
      // component: DashboardLayout,
      // children: [
      //   {
      //     path: 'classList',
      //     name: '杜渐',
      //     components: { default: Starter }
      //   },
      //   {
      //     path: 'haveTalk',
      //     name: '聊天',
      //     components: haveTalk 
      //   }
      // ]
      path: "/",
      component: DashboardLayout,
      redirect: "/haveTalk",
      children: [
        {
          path: "haveTalk",
          name: "聊天",
          component: haveTalkPage
        }
      ]
    },
    {
      path: "/inteAgent",
      component: inteAgent
    },
    {
      path: "/login",
      component:login
    }
  ]
});
